file(GLOB_RECURSE SOURCES 
                          cache_RT/*.c
                          logic_handle/*.c
                          mode_Config/*.c
                          my_driver/*.c
                          send_handle/*.c
                          uart_handle_module/*.c
                          key/*.c
                          *.c
                        )

set(include_dirs 
            cache_RT
            logic_handle
            mode_Config
            my_driver
            send_handle
            uart_handle_module
            key
            .
    )

idf_component_register(SRCS ${SOURCES}
                        INCLUDE_DIRS ${include_dirs}
                        REQUIRES driver
                        REQUIRES esp_wifi
                        REQUIRES nvs_flash
                        PRIV_REQUIRES bt
                        PRIV_REQUIRES mbedtls
                        REQUIRES driver esp_adc
                        REQUIRES esp_driver_uart
                        REQUIRES esp_driver_spi
                        REQUIRES esp_driver_gpio
                        REQUIRES app_update
                        REQUIRES esp_http_client
                        REQUIRES esp_https_ota
                        )    